Repository navigation
Move to LiteSVM 0.18.2 and drop the hand-written Agave 4.3 pins - #218
Merged
Merged
Conversation
58 crates carried `solana-program-runtime = "~4.3"` and `solana-fee =
"~4.3"` as dev-dependencies, with a four-line comment explaining why.
They were added because LiteSVM 0.18.1 declares its Agave dependencies
with `^4.3` ranges, which semver-admit Agave 4.4.0, while LiteSVM 0.18.1
does not compile against it. With no committed lockfile every fresh
resolve picked 4.4.0 and broke.
LiteSVM 0.18.2 tightened those same ranges to `~4.3.2`, so the hazard is
gone upstream and the hand pins no longer do anything. Remove all 116
pin lines and their comments.
Raising the floor from 0.18.1 to 0.18.2 is what makes removal safe,
rather than merely tidy: the declared `^0.18.1` already resolves to
0.18.2 today, but left at 0.18.1 a lockfile or `cargo update --precise`
could return to 0.18.1 and re-admit Agave 4.4.0. The floor now excludes
the version that needed the pins.
Note this is not the exit condition the deleted comments named ("once a
LiteSVM release builds against Agave 4.4"). That is still unmet: no
LiteSVM release, tag or `master` targets Agave 4.4, so the Agave crates
stay on 4.3.2. The pins go because LiteSVM stopped admitting 4.4, not
because it gained support for it.
Verified by resolution, which is what changed: `cargo tree` reports
litesvm 0.18.2 and solana-program-runtime 4.3.2 in an Anchor v2 project
with the pin removed, a token-swap project, and a native project.
Suites pass for one project per touched shape - transfer-sol (anchor),
cross-program-invocation (native) and counter (pinocchio) - each built
with `cargo build-sbf` and run under LiteSVM. The two ASM crates are a
dev-dependency bump only and were not run; they need `sbpf build`.
Claude-Session: https://claude.ai/code/session_01YTTjefTz2Kbj8t5qg77kXg
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
58 crates carried
solana-program-runtime = "~4.3"andsolana-fee = "~4.3"as dev-dependencies with a four-line comment explaining why. LiteSVM 0.18.2 makes them redundant, so all 116 pin lines and their comments come out.Why they existed
Per
3134c69b: LiteSVM 0.18.1 declares its Agave deps as^4.3.0, a caret range that semver-admits Agave 4.4.0 — which LiteSVM 0.18.1 does not compile against. With no committed lockfile in the Anchor v2 projects, every fresh resolve picked 4.4.0 and broke. Pinning those two crates (the caret-ranged ones that track the Agave major line) held the whole graph at 4.3, since Agave pins its own crates to each other exactly.Why they can go now
LiteSVM tightened those same ranges upstream:
solana-program-runtime^4.3.0^4.3.0~4.3.2A fresh resolve can no longer reach Agave 4.4.0 through LiteSVM at all.
Note this is not the exit condition the deleted comments named ("once a LiteSVM release builds against Agave 4.4"). That is still unmet — no LiteSVM release, tag, or
mastertargets Agave 4.4, so the Agave crates stay on 4.3.2. The pins go because LiteSVM stopped admitting 4.4, not because it gained support for it.Why the floor bump is the load-bearing part
The 35 crates declaring
litesvm = "0.18.1"move to"0.18.2". That matters beyond tidiness:^0.18.1already resolves to 0.18.2 today, but left at 0.18.1 a lockfile orcargo update --precisecould return to 0.18.1 and re-admit 4.4.0. The floor now excludes the version that needed the pins.Cargo.lockupdates accordingly — each member loses the two direct dependency edges and litesvm moves to 0.18.2. Thesolana-feeandsolana-program-runtimepackages stay in the lock, still pulled transitively by LiteSVM.Testing
Resolution is what changed here, so that is what I verified.
cargo treereports litesvm 0.18.2 and solana-program-runtime 4.3.2 in an Anchor v2 project with the pin removed, in token-swap, and in a native project.Suites then pass for one project per touched shape, each built with
cargo build-sbfand run under LiteSVM:basics/transfer-sol/anchorbasics/cross-program-invocation/nativebasics/counter/pinocchioThe two ASM crates are a dev-dependency bump only and were not run — they need
sbpf build, which wasn't available in the environment used.CI covers the resolve across every project, which is the real test, since the original breakage was a resolution problem rather than a compile error in repo code.
Generated by Claude Code